<?php $images = $pager->getResults(); ?>


<div class="yui-g">
	    
      
      <div>
        <?php foreach ($images as $image): ?>
          <?php include_partial('image/thumb', array('image' => $image)); ?>
        <?php endforeach; ?> 
      </div>
      
      <div class="image-pager">
      <?php if ($pager->getPage()-1 == $pager->getPreviousPage()): ?>
        <?php echo link_to('&lt;&nbsp;'.__('Prev'), '@default?lang='.$sf_user->getLang().'&module=image&action=index&page='.$pager->getPreviousPage()) ?>
      <?php else: ?>
        <?php echo '&lt;&nbsp;'.__('Prev'); ?>
      <?php endif; ?>
      <?php if ($pager->getPage()+1 == $pager->getNextPage()): ?>        
        <?php echo link_to(__('Next').'&nbsp;&gt;', '@default?lang='.$sf_user->getLang().'&module=image&action=index&page='.$pager->getNextPage()) ?>
      <?php else: ?>
        <?php echo __('Next').'&nbsp;&gt;'; ?>
      <?php endif; ?>
      </div>
	   
      
</div> 

<div id="fullsize"> 
  <?php include_partial('image/full', array('image' => $images[0])); ?> 
</div>

      